// 解决嵌入式列表名问题
import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
import { Name } from "./Name";

@Entity('name_extension')
export class NameExtension {
  @PrimaryGeneratedColumn()
  id: number;

  @Column((type) => Name, { prefix: false })
  name: Name;

  @Column()
  isActive: boolean;
}